﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class SSDConfigers : IEntityTypeConfiguration<SSD>
    {
        public void Configure(EntityTypeBuilder<SSD> builder)
        {
            builder.ToTable(nameof(SSD));
            builder.Property(x => x.StandardId).IsRequired(false).HasMaxLength(30);
            builder.Property(x => x.StandardName).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.ItemId).IsRequired(false);
            builder.Property(x => x.ItemName).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.Salary).IsRequired(false);
          
        }
    }
}
